package com.codedancer.campus.client.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.codedancer.campus.client.service.bo.chatMessage.ChatMessageListPageSearchBo;
import com.codedancer.campus.client.service.bo.chatMessage.ChatMessagePageSearchBo;
import com.codedancer.campus.client.service.vo.chatMessage.ChatRoomListVo;
import com.codedancer.campus.client.service.vo.chatMessage.ChatMessageVo;

public interface IChatMessageService {

    /**
     * 分页查询聊天记录
     * @param chatMessagePageSearchBo
     * @return
     */
    IPage<ChatMessageVo> page(ChatMessagePageSearchBo chatMessagePageSearchBo);

    /**
     * 分页查询聊天列表
     * @param chatMessageListPageSearchBo
     * @return
     */
    IPage<ChatRoomListVo> pageList( ChatMessageListPageSearchBo chatMessageListPageSearchBo);

    /**
     * 是否存在未读消息
     * @param currentLoginUuid
     * @return
     */
    Boolean isExitsNoRead(String currentLoginUuid);
}
